package com.jsoft.entity;

import java.io.Serializable;

/**
 * @author:sha
 * @email:o68o4741@163.com
 * @date:2023/2/21
 */
public class User implements Serializable{
    private static final long serialVersionUID = 3327141230448166006L;
    private Integer id;
    private String name;
    private Integer enterpriseId;
    private String phone;
    private String account;
    private String password;
    private String idCardName;
    private String idCardNo;
    private String salt;

    public Integer getId() {
        return id;
    }

    public User() {
    }

    public User(Integer id, String name, Integer enterpriseId, String phone, String account, String password, String idCardName, String idCardNo, String salt) {
        this.id = id;
        this.name = name;
        this.enterpriseId = enterpriseId;
        this.phone = phone;
        this.account = account;
        this.password = password;
        this.idCardName = idCardName;
        this.idCardNo = idCardNo;
        this.salt = salt;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", enterpriseId=" + enterpriseId +
                ", phone='" + phone + '\'' +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", idCardName='" + idCardName + '\'' +
                ", idCardNo='" + idCardNo + '\'' +
                ", salt='" + salt + '\'' +
                '}';
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(Integer enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIdCardName() {
        return idCardName;
    }

    public void setIdCardName(String idCardName) {
        this.idCardName = idCardName;
    }

    public String getIdCardNo() {
        return idCardNo;
    }

    public void setIdCardNo(String idCardNo) {
        this.idCardNo = idCardNo;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }
}
